# coding=utf-8
import requests


class RequestSomething(object):
    def __init__(self, **kwargs):
        pass
        
    def create_request(self, **kwargs):
        url = kwargs.get('url', None)
        method = kwargs.get('method', None)
        if not url:
            return 'url required!'

        if method.lower() == 'get':
            return requests.get(url)

        else:
            return requests.post(url)
